export const Routes = [
  {
    path: "/",
    component: () => import("@/pages/layout/index.vue"),
    redirect: "/index",
    children: [
      {
        path: "/index",
        name: "Home",
        component: () => import("@/pages/index/index.vue"),
        meta: { title: "首页" },
      },
      {
        path: "/setting",
        name: "Setting",
        component: () => import("@/pages/setting/index.vue"),
        meta: { title: "设置" },
      },
    ],
  },
  {
    path: "/login",
    name: "Login",
    component: () => import("@/pages/login/index.vue"),
    meta: { title: "登录" },
  },
  {
    path: "/list",
    name: "list",
    component: () => import("@/pages/list/index.vue"),
    meta: { title: "列表" },
  },
    {
    path: "/jclist",
    name: "jclist",
    component: () => import("@/pages/list/jclist.vue"),
    meta: { title: "列表" },
  },
    {
    path: "/:pathMatch(.*)*",
    redirect: "/login",
  }
];

export default Routes;
